import request from "/@/utils/request"

// 获取巡检完成率数据
export function getCheckFinishingRate(query) {
    return request({
        url: '/om/omicheckhome/getCheckFinishingRate',
        method: 'get',
        params: query
    })
}

// 获取状态数据
export function getAllCheckStatus() {
    return request({
        url: '/om/omicheckhome/getAllCheckStatus',
        method: 'get',
    })
}

// 获取折线图数据
export function getCheckRepairAnalyze() {
    return request({
        url: '/om/omicheckhome/getCheckRepairAnalyze',
        method: 'get',
    })
}

// 获取表格数据
export function getCheckReportStatistics(query) {
    return request({
        url: '/om/omicheckhome/getCheckReportStatistics/' + query,
        method: 'get',
    })
}

// 根据时间获取表格数据
export function getCheckReportStatisticsByDate(query) {
    return request({
        url: '/om/omicheckhome/getCheckReportStatisticsByDate',
        method: 'post',
        data: query
    })
}